ARM: GICv3 ITS: allocate device and collection table
authorAndre Przywara <andre.przywara@arm.com>
Fri, 7 Apr 2017 22:07:56 +0000 (23:07 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 7 Apr 2017 22:15:33 +0000 (15:15 -0700)
commit05238012b86d7b9072b65533b5a37a302e69949a
tree746a1f98471a981aca3f7f1faff0d6a54878fa2d
parentc9b939863c8914af10b9e0c4fbf8054fedf2c72d
ARM: GICv3 ITS: allocate device and collection table

Each ITS maps a pair of a DeviceID (for instance derived from a PCI
b/d/f triplet) and an EventID (the MSI payload or interrupt ID) to a
pair of LPI number and collection ID, which points to the target CPU.
This mapping is stored in the device and collection tables, which software
has to provide for the ITS to use.
Allocate the required memory and hand it over to the ITS.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/gic-v3-its.c
xen/include/asm-arm/gic_v3_its.h